# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=unicorn-powershell
pkgver=212.5421d46
pkgrel=4
groups=('blackarch' 'blackarch-backdoor' 'blackarch-exploitation')
pkgdesc='A simple tool for using a PowerShell downgrade attack and inject shellcode straight into memory.'
arch=('any')
url='https://github.com/trustedsec/unicorn'
license=('custom:unknown')
depends=('python')
makedepends=('git')
source=("$pkgname::git+https://github.com/trustedsec/unicorn.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 unicorn.py "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/README" CHANGELOG.txt \
    CREDITS.txt README.md
}

